<?php namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Tag extends Model {

	protected $table = 'tag';
	protected $primaryKey = 'id';
	protected $guarded = ['id']; 
	
	
	public function article()
    {
        return $this->morphedByMany('App\Models\article', 'taggable');
    }

    // public function videos()
    // {
    //     return $this->morphedByMany('App\Models\Video', 'taggable');
    // }

	

}
